﻿@model IQueryable<USERS.CYT369.COM.MODELS.App>
@{
    ViewBag.Title = "用户登录";
    ViewBag.HeaderName = "欢迎登录";
    Layout = "~/Views/Shared/_RegisterLoginLayout.cshtml";
}
@section scripts{
    <script src="~/Scripts/qc_jssdk.js" charset="utf-8" data-callback="true"
            data-appid="102004089"
            data-redirecturi="@Url.Content("~/Account/qq_callback")"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            setTimeout(GotoLoginPage, 5000);
            if (QC.Login.check()) {
                QC.Login.signOut();
            }
        });

        function GotoLoginPage() {
            location.href = "@Url.Content("~/Account/Login")";
        }
    </script>
}
<div class="page-bg" style="position:relative">
    @foreach (var app in Model)
    {
        <iframe src="@app.LogoutUrl" style="width:0px;height:0px;"></iframe>
    }
</div>
